/**
 * Created by Administrator on 2016/10/7.
 */

import java.awt.Graphics;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
public class Exercise_2 extends JPanel
{

    public void paintComponent( Graphics g )
    {
        super.paintComponent( g );
        for( int i = 1; i<13; i++)
        {
                    //draw ovals
                    g.drawOval(200-i*10 , 200-i*10 , i * 20,  i * 20);

        }//end for
    }//end method paintComponent

}//end class Exercise_2
